package com.zretc.service.impl;

import com.zretc.dao.AdminLoginMapper;
import com.zretc.entity.Admin;
import com.zretc.service.AdminLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminLoginServiceImpl implements AdminLoginService {
    @Autowired
    private AdminLoginMapper adminLoginMapper;
    @Override
    public Admin getAdminByIdAndPassword(String adminId, String password) {
        return adminLoginMapper.findAdminByIdAndPassword(adminId,password);
    }
}
